/*
 * @Author: 许静1123 806901413@qq.com
 * @Date: 2024-06-24 14:08:19
 * @LastEditors: 许静1123 806901413@qq.com
 * @LastEditTime: 2024-06-24 15:17:11
 * @FilePath: \qiankun-history\main\src\qiankun.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { registerMicroApps, start } from "qiankun";
const getActiveRule = (hash) => (location) => location.hash.startsWith(hash);
export function qiankunStart() {
  registerMicroApps([
    {
      name: "app1",
      entry: "//localhost:3001",
      container: "#main-contain",
      activeRule: getActiveRule("#/app1"),
    },
  ]);
  // 启动 qiankun
  start();
}
